﻿<Application
    xmlns:core="clr-namespace:ColorWheel.Core;assembly=ColorWheel.Core"
    x:Class="ColorWheel.Win.GradientColor.Demo.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    StartupUri="MainWindow.xaml">

    <Application.Resources>

        <!-- Region Common Control Colors -->
        
        <core:TemplateColor
            x:Key="ControlBackground"
            Name="ControlBackground"
            Category="General Controls"
            Color="DarkGray" />
        
        <core:TemplateColor
            x:Key="ControlForeground"
            Name="ControlForeground"
            Category="General Controls"
            Color="Black" />        
        
        <core:TemplateColor
            x:Key="ControlBorder"
            Name="ControlBorder"
            Category="General Controls"
            Color="White" />

        <core:TemplateColor
            x:Key="ControlHighlight"
            Name="ControlHighlight"
            Category="General Controls"
            Color="Gray" />

        <core:TemplateColor
            x:Key="ControlHighlightForeground"
            Name="ControlHighlightForeground"
            Category="General Controls"
            Color="Black" />        
        
        <!-- EndRegion -->
        
        <!-- Region Button -->
        
        <core:TemplateColor
            x:Key="ButtonBackground"
            Name="ButtonBackground"
            Category="Button"
            BasedOn="ControlBackground" />

        <core:TemplateColor
            x:Key="ButtonBackgroundBrush"
            Name="ButtonBackgroundBrush"
            Category="Button"
            BasedOnTemplate="{StaticResource ButtonBackground}"
            Effect="Glass(0.5)" />        
        
        <core:TemplateColor
            x:Key="ButtonNormalBorder"
            Name="ButtonNormalBorder"
            Category="Button"
            Effect="Invert"
            BasedOn="ButtonBackground" />

        <core:TemplateColor
            x:Key="ButtonForeground"
            Name="ButtonForeground"
            Category="Button"
            BasedOn="ControlForeground" />

        <core:TemplateColor
            x:Key="ButtonDisabledForeground"
            Name="ButtonDisabledForeground"
            Category="Button"
            BasedOn="ButtonForeground"
            Effect="Light" />

        <core:TemplateColor
            x:Key="ButtonMouseOverBackground"
            Name="ButtonMouseOverBackground"
            Category="Button"
            Effect="Glass-Light(0.1)-InvertLuminosity"
            BasedOnTemplate="{StaticResource ButtonBackground}" />

        <core:TemplateColor
            x:Key="ButtonBackgroundIsPressed"
            Name="ButtonBackgroundIsPressed"
            Category="Button"
            Effect="Glass-Dark(0.1)"
            BasedOn="ButtonBackgroundBrush" />

        <!-- EndRegion -->

        <core:TemplateColor
            x:Key="DarkLinenTile"
            Name="DarkLinenTile"
            Category="Tiles"
            Color="Black"
            Effect="tile(lightgraytile)" />

    </Application.Resources>  
</Application>
